package TankGame5;

public class Bomb {
    int x,y;//炸弹的坐标
    int life = 15;//炸弹的生命周期
    boolean islive = true;//是否存活

    public Bomb(int x, int y) {
        this.x = x;
        this.y = y;
    }
    public void lifedown(){
        if(life>0){
            life--;
        }else{
            islive = false;
        }
    }
}
